Package pl.wendigo.chrome.api.audits

Contains DevTools Protocol Audits domain implementation accessible via AuditsDomain class.

Types

AffectedCookie
Link copied to clipboard
data class AffectedCookie(name: String, path: String, domain: String)
Information about a cookie that is affected by an inspector issue.
AffectedFrame
Link copied to clipboard
data class AffectedFrame(frameId: FrameId)
Information about the frame affected by an inspector issue.
AffectedRequest
Link copied to clipboard
data class AffectedRequest(requestId: RequestId, url: String?)
Information about a request that is affected by an inspector issue.
AuditsDomain
Link copied to clipboard
class AuditsDomain : Domain
Audits domain allows investigation of page violations and possible improvements.
BlockedByResponseIssueDetails
Link copied to clipboard
data class BlockedByResponseIssueDetails(request: AffectedRequest, parentFrame: AffectedFrame?, blockedFrame: AffectedFrame?, reason: BlockedByResponseReason)
Details for a request that has been blocked with the BLOCKED_BY_RESPONSE code.
BlockedByResponseReason
Link copied to clipboard
enum BlockedByResponseReason : Enum<BlockedByResponseReason>
Enum indicating the reason a response has been blocked.
CheckContrastRequest
Link copied to clipboard
data class CheckContrastRequest(reportAAA: Boolean?)
Represents request frame that can be used with Audits#checkContrast operation call.
ContentSecurityPolicyIssueDetails
Link copied to clipboard
data class ContentSecurityPolicyIssueDetails(blockedURL: String?, violatedDirective: String, isReportOnly: Boolean, contentSecurityPolicyViolationType: ContentSecurityPolicyViolationType, frameAncestor: AffectedFrame?, sourceCodeLocation: SourceCodeLocation?, violatingNodeId: BackendNodeId?)
CorsIssueDetails
Link copied to clipboard
data class CorsIssueDetails(corsErrorStatus: CorsErrorStatus, isWarning: Boolean, request: AffectedRequest, resourceIPAddressSpace: IPAddressSpace?, clientSecurityState: ClientSecurityState?)
Details for a CORS related issue, e.g.
GetEncodedResponseRequest
Link copied to clipboard
data class GetEncodedResponseRequest(requestId: RequestId, encoding: String, quality: Double?, sizeOnly: Boolean?)
Represents request frame that can be used with Audits#getEncodedResponse operation call.
GetEncodedResponseResponse
Link copied to clipboard
data class GetEncodedResponseResponse(body: String?, originalSize: Int, encodedSize: Int)
Represents response frame that is returned from Audits#getEncodedResponse operation call.
HeavyAdIssueDetails
Link copied to clipboard
data class HeavyAdIssueDetails(resolution: HeavyAdResolutionStatus, reason: HeavyAdReason, frame: AffectedFrame)
HeavyAdReason
Link copied to clipboard
enum HeavyAdReason : Enum<HeavyAdReason>
HeavyAdResolutionStatus
Link copied to clipboard
enum HeavyAdResolutionStatus : Enum<HeavyAdResolutionStatus>
InspectorIssue
Link copied to clipboard
data class InspectorIssue(code: InspectorIssueCode, details: InspectorIssueDetails)
An inspector issue reported from the back-end.
InspectorIssueCode
Link copied to clipboard
enum InspectorIssueCode : Enum<InspectorIssueCode>
A unique identifier for the type of issue.
InspectorIssueDetails
Link copied to clipboard
data class InspectorIssueDetails(sameSiteCookieIssueDetails: SameSiteCookieIssueDetails?, mixedContentIssueDetails: MixedContentIssueDetails?, blockedByResponseIssueDetails: BlockedByResponseIssueDetails?, heavyAdIssueDetails: HeavyAdIssueDetails?, contentSecurityPolicyIssueDetails: ContentSecurityPolicyIssueDetails?, sharedArrayBufferIssueDetails: SharedArrayBufferIssueDetails?, twaQualityEnforcementDetails: TrustedWebActivityIssueDetails?, lowTextContrastIssueDetails: LowTextContrastIssueDetails?, corsIssueDetails: CorsIssueDetails?)
This struct holds a list of optional fields with additional information specific to the kind of issue.
IssueAddedEvent
Link copied to clipboard
data class IssueAddedEvent(issue: InspectorIssue) : Event
LowTextContrastIssueDetails
Link copied to clipboard
data class LowTextContrastIssueDetails(violatingNodeId: BackendNodeId, violatingNodeSelector: String, contrastRatio: Double, thresholdAA: Double, thresholdAAA: Double, fontSize: String, fontWeight: String)
MixedContentIssueDetails
Link copied to clipboard
data class MixedContentIssueDetails(resourceType: MixedContentResourceType?, resolutionStatus: MixedContentResolutionStatus, insecureURL: String, mainResourceURL: String, request: AffectedRequest?, frame: AffectedFrame?)
MixedContentResolutionStatus
Link copied to clipboard
MixedContentResourceType
Link copied to clipboard
enum MixedContentResourceType : Enum<MixedContentResourceType>
SameSiteCookieExclusionReason
Link copied to clipboard
SameSiteCookieIssueDetails
Link copied to clipboard
data class SameSiteCookieIssueDetails(cookie: AffectedCookie, cookieWarningReasons: List<SameSiteCookieWarningReason>, cookieExclusionReasons: List<SameSiteCookieExclusionReason>, operation: SameSiteCookieOperation, siteForCookies: String?, cookieUrl: String?, request: AffectedRequest?)
This information is currently necessary, as the front-end has a difficult time finding a specific cookie.
SameSiteCookieOperation
Link copied to clipboard
enum SameSiteCookieOperation : Enum<SameSiteCookieOperation>
SameSiteCookieWarningReason
Link copied to clipboard
SharedArrayBufferIssueDetails
Link copied to clipboard
data class SharedArrayBufferIssueDetails(sourceCodeLocation: SourceCodeLocation, isWarning: Boolean, type: SharedArrayBufferIssueType)
Details for a issue arising from an SAB being instantiated in, or transfered to a context that is not cross-origin isolated.
SharedArrayBufferIssueType
Link copied to clipboard
enum SharedArrayBufferIssueType : Enum<SharedArrayBufferIssueType>
SourceCodeLocation
Link copied to clipboard
data class SourceCodeLocation(scriptId: ScriptId?, url: String, lineNumber: Int, columnNumber: Int)
TrustedWebActivityIssueDetails
Link copied to clipboard
data class TrustedWebActivityIssueDetails(url: String, violationType: TwaQualityEnforcementViolationType, httpStatusCode: Int?, packageName: String?, signature: String?)